/*
 * ShowLoginWindow.java
 *
 * Created on __DATE__, __TIME__
 */

package Windows.ShowWindows;

import java.awt.Image;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import Tools.JLabelStyle;

/**
 * 
 * @author __USER__
 */
public class ShowLoginWindow extends ShowWindow implements MouseListener {

	/**
	 * @param args
	 *            the command line arguments
	 */
	public static void main(String args[]) {
		java.awt.EventQueue.invokeLater(new Runnable() {
			@Override
			public void run() {
				new ShowLoginWindow(null, null).setVisible(true);
			}
		});
	}

	// GEN-BEGIN:variables
	// Variables declaration - do not modify
	public final javax.swing.JLabel jl1 = new javax.swing.JLabel();

	public final javax.swing.JLabel jl2 = new javax.swing.JLabel();

	public final javax.swing.JLabel jl3 = new javax.swing.JLabel();
	public final javax.swing.JLabel jl4 = new javax.swing.JLabel();
	private javax.swing.JLabel jlClose;
	public final javax.swing.JLabel jlICO = new javax.swing.JLabel();
	public final javax.swing.JLabel jlTitle = new javax.swing.JLabel();
	/** Creates new form ShowLoginWindow */
	public ShowLoginWindow(Image backgroup, Image backgroup2) {
		super(backgroup, backgroup2);
		initComponents();

		MouseListener ml = JLabelStyle.getStyleListener();

		jl1.addMouseListener(ml);
		jl2.addMouseListener(ml);
		jl3.addMouseListener(ml);
		jl4.addMouseListener(ml);
		jlClose.addMouseListener(ml);

		jlICO.addMouseListener(this);
		jlTitle.addMouseListener(this);
		jl1.addMouseListener(this);
		jl2.addMouseListener(this);
		jl3.addMouseListener(this);
		jl4.addMouseListener(this);
		jlClose.addMouseListener(this);

		JLabelStyle.setStyle(jl1);
		JLabelStyle.setStyle(jl2);
		JLabelStyle.setStyle(jl3);
		JLabelStyle.setStyle(jl4);
		JLabelStyle.setStyle(jlClose);
		JLabelStyle.setStyle(jlICO);
		JLabelStyle.setStyle(jlTitle);

	}
	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	// GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jlClose = new javax.swing.JLabel();

		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

		jlTitle.setFont(new java.awt.Font("宋体", 1, 12));
		jlTitle.setText("\u606d\u559c,\u767b\u9646\u6210\u529f!");

		jl1.setText("jLabel3");

		jl2.setText("jLabel3");

		jl4.setText("jLabel3");

		jl3.setText("jLabel3");

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				layout.createSequentialGroup()
						.addContainerGap()
						.addGroup(
								layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addComponent(jlICO, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(18, 18, 18).addComponent(jlTitle, javax.swing.GroupLayout.DEFAULT_SIZE, 184, Short.MAX_VALUE)).addComponent(jl1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 257, Short.MAX_VALUE).addComponent(jl2, javax.swing.GroupLayout.DEFAULT_SIZE, 257, Short.MAX_VALUE).addComponent(jl3, javax.swing.GroupLayout.DEFAULT_SIZE, 257, Short.MAX_VALUE).addComponent(jl4, javax.swing.GroupLayout.DEFAULT_SIZE, 257, Short.MAX_VALUE)
										.addComponent(jlClose, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)).addContainerGap()));
		layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jlICO, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(layout.createSequentialGroup().addGap(22, 22, 22).addComponent(jlTitle))).addGap(18, 18, 18).addComponent(jl1).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jl2).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jl3).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jl4).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)
						.addComponent(jlClose, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)));

		pack();
	}// </editor-fold>
		// GEN-END:initComponents

	// End of variables declaration//GEN-END:variables
	@Override
	public void mouseClicked(MouseEvent me) {
		// TODO Auto-generated method stub
		Close();
	}

	@Override
	public void mouseEntered(MouseEvent arg0) {
		// TODO Auto-generated method stub
		mp.entered = true;
		exists = -1;
	}

	@Override
	public void mouseExited(MouseEvent arg0) {
		// TODO Auto-generated method stub
		mp.entered = false;
		exists = 0;
	}

	@Override
	public void mousePressed(MouseEvent arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseReleased(MouseEvent arg0) {
		// TODO Auto-generated method stub

	}

}